home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6650 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  989 b 

  1. Path: dsi.unimi.it!moreld
  2. From: moreld@dsi.unimi.it (~ZIO BUDDA~)
  3. Newsgroups: comp.lang.c++
  4. Subject: How Can I call destructor???
  5. Date: 12 Feb 1996 14:49:05 GMT
  6. Organization: Computer Science Dep. - Milan University
  7. Message-ID: <4fnk11$a50@tic.sm.dsi.unimi.it>
  8. NNTP-Posting-Host: tac.fddi.dsi.unimi.it
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi boyzand girlz, my question is :
  12. I have a class call ClassX and Iwant to make pubblic class-function that call
  13. the destructor (~ClassX). How can I make this???
  14.  
  15. If I make 
  16. void ClassX::Drestroy()
  17. {~ClassX();
  18. }
  19. thecompiler (gcc 2,6,3) say me  that the  bionary operation is not permitted
  20. ( or sameother error).
  21.  
  22. tnx  in advance andsorry for my bad english
  23.  
  24.  
  25. --
  26. Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
  27. http://www.dsi.unimi.it/Users/Students/moreld/home.html
  28. Ask me for questions about LINUX and Games for PC, and see my home page 
  29. I'm a programmer and a consultant...
  30.  
  31. Tel. 02/2139959 ... Chiedere di Davide Michel
  32.